home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / info-service / gopher / Unix / gopher1.12 / object / STRstring.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-12-31  |  1.5 KB  |  56 lines

  1. /********************************************************************
  2.  * $Author: lindner $
  3.  * $Revision: 1.2 $
  4.  * $Date: 1992/12/29 21:42:18 $
  5.  * $Source: /home/mudhoney/GopherSrc/release1.11/object/RCS/STRstring.h,v $
  6.  * $Status: $
  7.  *
  8.  * Paul Lindner, University of Minnesota CIS.
  9.  *
  10.  * Copyright 1991, 1992 by the Regents of the University of Minnesota
  11.  * see the file "Copyright" in the distribution for conditions of use.
  12.  *********************************************************************
  13.  * MODULE: STRstring.h
  14.  * A dynamic string in C that really wants to be C++
  15.  *********************************************************************
  16.  * Revision History:
  17.  * $Log: STRstring.h,v $
  18.  * Revision 1.2  1992/12/29  21:42:18  lindner
  19.  * Added #defines for VMS (jqj,fogel)
  20.  *
  21.  * Revision 1.1  1992/12/10  23:27:52  lindner
  22.  * gopher 1.1 release
  23.  *
  24.  *
  25.  *********************************************************************/
  26.  
  27.  
  28. #ifndef STRstring_H
  29. #define STRstring_H
  30.  
  31. #ifdef VMS
  32. /*** VMS linker doesn't know about case! ***/
  33. #define STRcpy GSTRcpy
  34. #define STRcmp GSTRcmp
  35. #define STRcat GSTRcat
  36. #endif
  37.  
  38. struct string_struct {
  39.      int  len;
  40.      char *data;
  41. };
  42.  
  43. typedef struct string_struct String;
  44.  
  45. String *STRnew();
  46. String *STRnewSet(/* char* */);
  47. String *STRcpy(/* String, String */);
  48. void    STRinit(/* String*  */);
  49. void    STRset(/* String*, char* */);
  50. void    STRdestroy(/* String* */);
  51. #define STRget(s) ((s)->data)
  52. #define STRlen(s) ((s)->len)
  53. String* STRcat();
  54. int     STRcmp();
  55. #endif
  56.